package com.superb.common.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

/**
 * @Author: ajie
 * @CreateTime: 2024-07-04 13:43
 */
@Data
@Component
@RefreshScope
@ConfigurationProperties(prefix = "aliyun")
public class AliyunProperties {

    /**
     * 凭证id
     */
    private String accessKeyId;

    /**
     * 秘钥
     */
    private String accessKeySecret;

    /**
     * oss存储信息
     */
    private Oss oss = new Oss();

    @Data
    public static class Oss {
        /**
         * 存储位置
         */
        private String endpoint;
    }

}
